import {
    http4
} from "@/service/axios";

// 车场卡类型列表接口
export function getCardTypeList(data) {
    return http4.post({
        url: '/user/card/type/list/page',
        data
    })
}

// 车场卡类型新增接口
export function getAddCparkCard(data) {
    return http4.post({
        url: '/user/card/type/add',
        data
    })
}

// 车场卡类型编辑接口
export function getEditCparkCard({
    id,
    data
}) {
    return http4.post({
        url: `/user/card/type/edit/${id}`,
        data
    })
}

// 车场卡类型状态编辑
export function getStatusAPi({
    id,
    status
}) {
    return http4.put({
        url: `/user/card/type/edit/status/${id}?status=` + status
    })
}
export function getAllowAPi({
    id,
    allowOnline
}) {
    return http4.put({
        url: `/user/card/type/edit/status/${id}?allowOnline=` + allowOnline
    })
}